<script>
import {defineComponent} from 'vue'
import Child from "@/components/Child.vue";

export default defineComponent({
    name: "App",
    components: {Child},
    mounted(){
        this.$bus.$on("one",(a,b,c,d)=>{
            console.log("one被触发了",a,b,c,d)
        })
    }
})
</script>

<template>
    <div>
        <h3>App</h3>
        <button @click="$bus.$emit('one',1,2,3,4)">触发one</button>
        <hr/>
        <Child/>
    </div>
</template>

<style scoped>

</style>